import { StateTree, StoreActions, StoreGetters } from "pinia";
import { RouteRecordRaw } from "vue-router";

export declare interface rootState extends StateTree {
    [key: string]: any
    routes: RouteRecordRaw[]
}
export declare interface rootActions extends StoreActions<rootState> {
    [key: string]: any
}
export declare interface rootGetters extends StoreGetters<rootState> {
    [key: string]: any
}

export declare type ResponseInfo<T> = {
    data: T
    message: string
    code: number
}

export declare type ResponseData = {
    _id: string
    createdAt: string
    updatedAt: string
    deletedAt?: string
}